import request from '@/utils/request'

// 分页查询
export function pageList(data) {
  return request({
    url: '/system/sysCarousel/pageList?pageNum=' + data.pageNum + '&pageSize=' + data.pageSize,
    method: 'post',
    data
  })
}

// 删除
export function deleteById(id) {
  return request({
    url: '/system/sysCarousel/deleteById/' + id,
    method: 'post',
  })
}

// 增加
export function add(data) {
  return request({
    url: '/system/sysCarousel/add',
    method: 'post',
    data
  })
}

// 修改
export function updateById(data) {
  return request({
    url: '/system/sysCarousel/updateById',
    method: 'post',
    data
  })
}
